Integrand size = 33, antiderivative size = 135 \[ \int (a+b \cos (c+d x)) \left (A+C \cos ^2(c+d x)\right ) \sec ^{\frac {5}{2}}(c+d x) \, dx=-\frac {2 b (A-C) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{d}+\frac {2 a (A+3 C) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{3 d}+\frac {2 A b \sqrt {\sec (c+d x)} \sin (c+d x)}{d}+\frac {2 a A \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d} \]
[Out]
Time = 0.28 (sec) , antiderivative size = 135, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {4306, 3111, 3100, 2827, 2720, 2719} \[ \int (a+b \cos (c+d x)) \left (A+C \cos ^2(c+d x)\right ) \sec ^{\frac {5}{2}}(c+d x) \, dx=\frac {2 a (A+3 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d}+\frac {2 a A \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 d}-\frac {2 b (A-C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}+\frac {2 A b \sin (c+d x) \sqrt {\sec (c+d x)}}{d} \]
[In]
[Out]
Rule 2719
Rule 2720
Rule 2827
Rule 3100
Rule 3111
Rule 4306
Rubi steps \begin{align*} \text {integral}& = \left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {(a+b \cos (c+d x)) \left (A+C \cos ^2(c+d x)\right )}{\cos ^{\frac {5}{2}}(c+d x)} \, dx \\ & = \frac {2 a A \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+\frac {1}{3} \left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\frac {3 A b}{2}+\frac {1}{2} a (A+3 C) \cos (c+d x)+\frac {3}{2} b C \cos ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x)} \, dx \\ & = \frac {2 A b \sqrt {\sec (c+d x)} \sin (c+d x)}{d}+\frac {2 a A \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+\frac {1}{3} \left (4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\frac {1}{4} a (A+3 C)-\frac {3}{4} b (A-C) \cos (c+d x)}{\sqrt {\cos (c+d x)}} \, dx \\ & = \frac {2 A b \sqrt {\sec (c+d x)} \sin (c+d x)}{d}+\frac {2 a A \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}-\left (b (A-C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx+\frac {1}{3} \left (a (A+3 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx \\ & = -\frac {2 b (A-C) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{d}+\frac {2 a (A+3 C) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{3 d}+\frac {2 A b \sqrt {\sec (c+d x)} \sin (c+d x)}{d}+\frac {2 a A \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d} \\ \end{align*}
Time = 1.50 (sec) , antiderivative size = 96, normalized size of antiderivative = 0.71 \[ \int (a+b \cos (c+d x)) \left (A+C \cos ^2(c+d x)\right ) \sec ^{\frac {5}{2}}(c+d x) \, dx=\frac {\sec ^{\frac {3}{2}}(c+d x) \left (-6 b (A-C) \cos ^{\frac {3}{2}}(c+d x) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )+2 a (A+3 C) \cos ^{\frac {3}{2}}(c+d x) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )+2 A (a+3 b \cos (c+d x)) \sin (c+d x)\right )}{3 d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(612\) vs. \(2(171)=342\).
Time = 326.65 (sec) , antiderivative size = 613, normalized size of antiderivative = 4.54
method | result | size |
default | \(-\frac {2 \sqrt {-\left (-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (12 A \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b -2 A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) a -6 A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b -6 C \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) a +6 C \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b -2 A \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) a -6 A \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b +a A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+3 A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) b +3 C a \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-3 C \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) b \right ) \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}}{3 \left (4 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-4 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{3} \sqrt {-1+2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, d}\) | \(613\) |
parts | \(\text {Expression too large to display}\) | \(667\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.11 (sec) , antiderivative size = 190, normalized size of antiderivative = 1.41 \[ \int (a+b \cos (c+d x)) \left (A+C \cos ^2(c+d x)\right ) \sec ^{\frac {5}{2}}(c+d x) \, dx=\frac {-i \, \sqrt {2} {\left (A + 3 \, C\right )} a \cos \left (d x + c\right ) {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + i \, \sqrt {2} {\left (A + 3 \, C\right )} a \cos \left (d x + c\right ) {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) - 3 i \, \sqrt {2} {\left (A - C\right )} b \cos \left (d x + c\right ) {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) + 3 i \, \sqrt {2} {\left (A - C\right )} b \cos \left (d x + c\right ) {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right ) + \frac {2 \, {\left (3 \, A b \cos \left (d x + c\right ) + A a\right )} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{3 \, d \cos \left (d x + c\right )} \]
[In]
[Out]
Timed out. \[ \int (a+b \cos (c+d x)) \left (A+C \cos ^2(c+d x)\right ) \sec ^{\frac {5}{2}}(c+d x) \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int (a+b \cos (c+d x)) \left (A+C \cos ^2(c+d x)\right ) \sec ^{\frac {5}{2}}(c+d x) \, dx=\int { {\left (C \cos \left (d x + c\right )^{2} + A\right )} {\left (b \cos \left (d x + c\right ) + a\right )} \sec \left (d x + c\right )^{\frac {5}{2}} \,d x } \]
[In]
[Out]
\[ \int (a+b \cos (c+d x)) \left (A+C \cos ^2(c+d x)\right ) \sec ^{\frac {5}{2}}(c+d x) \, dx=\int { {\left (C \cos \left (d x + c\right )^{2} + A\right )} {\left (b \cos \left (d x + c\right ) + a\right )} \sec \left (d x + c\right )^{\frac {5}{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int (a+b \cos (c+d x)) \left (A+C \cos ^2(c+d x)\right ) \sec ^{\frac {5}{2}}(c+d x) \, dx=\int \left (C\,{\cos \left (c+d\,x\right )}^2+A\right )\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2}\,\left (a+b\,\cos \left (c+d\,x\right )\right ) \,d x \]
[In]
[Out]